package org.opicasso.cheese.ui.components;

import java.text.NumberFormat;
import java.util.Locale;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;

public class PriceLabel extends Label {

	private static final long serialVersionUID = -609930210396131931L;

	public PriceLabel(final String id, final Number price) {
		super(id);
		// TODO get locale from somewhere else
		final Locale locale = new Locale("en", "CA");
		setModel(new Model(NumberFormat.getCurrencyInstance(locale).format(
				price)));
	}
	
	

}
